﻿
namespace Apache.Cassandra.Client.Diagnostics {
    using System.Collections;
    using System.ComponentModel;
    using System.Configuration.Install;

    [RunInstaller(true)]
    public sealed class CassandraCountersInstaller : Installer {

        public override void Install(IDictionary savedState) {
            base.Install(savedState);

            CassandraClientFactoryCounters.InstallCounters();
            CassandraClientPoolCounters.InstallCounters();
        }

        public override void Uninstall(IDictionary savedState) {
            base.Uninstall(savedState);

            CassandraClientFactoryCounters.UninstallCounters();
            CassandraClientPoolCounters.UninstallCounters();
        }
    }
}
